import request from '@/utils/request'

// 区域管理-列表
export const regionList = data =>
  request({
    url: `/base/region/index`,
    method: 'post',
    data,
  })

// 区域管理-详情
export const regionDetail = params =>
  request({
    url: `/base/region/detail`,
    method: 'get',
    params,
  })

// 区域管理-创建
export const createRegion = data =>
  request({
    url: `/base/region/create`,
    method: 'post',
    data,
  })

// 区域管理-编辑
export const updateRegion = data =>
  request({
    url: `/base/region/update`,
    method: 'post',
    data,
  })

// 区域管理-删除
export const deleteRegion = data =>
  request({
    url: `/base/region/delete`,
    method: 'post',
    data,
  })

// 区域管理-启用禁用
export const statusRegion = data =>
  request({
    url: `/base/region/status`,
    method: 'post',
    data,
  })
